
import { loadTaskCourseListByStu } from "../../services/educational"
export default {

  namespace: 'mySchedule',

  state: {
    timetable:[]
  },

  effects: {
    *loadTaskCourseList({ payload }, { call, put }) {
      let nav = yield loadTaskCourseListByStu(payload)
      yield put({
        type: 'CourseList', payload: nav.rows
      });
    }
    
  },

  reducers: {
    CourseList(state, { payload }) {
      state.timetable = payload;
      return {
        ...state,
        ...payload,
      }
  },
}

};
